package com.jp.knowledge.my.activity;

import android.view.View;
import com.jp.knowledge.R;
import com.jp.knowledge.comm.SlidingActivity;
import com.jp.knowledge.my.fragment.VipFragment;

/**
 * Created by 528787067@qq.com on 2017/6/15.
 */

public class VipActivity extends SlidingActivity {

	private VipFragment vipFragment;

	@Override
	protected int getResourceId() {
		return R.layout.activity_user_vip;
	}

	@Override
	protected void init() {
		vipFragment = VipFragment.newInstance(0, null);
		topName.setText("VIP会员套餐");
		rightIcon.setVisibility(View.GONE);
		leftIcon.setImageResource(R.mipmap.arrow_white_left);
		leftIcon.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});

		getSupportFragmentManager()
				.beginTransaction()
				.replace(R.id.vip_content_view, vipFragment)
				.commit();
	}
}
